package com.zbxx.dao;

import com.zbxx.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.ui.Model;

import java.util.List;

public interface UserDao {
    User login(@Param("name") String  name,@Param("password") String password);

    List<User> SelectUserAll();

    int deleteUser(Long id);

    User editUserId(Long id);

    int editUser(User user);

    int addUser(User user);

    int reg(User user);

    List<User> findinfo(User name);

    int UpdatePwd(@Param("name") User name, @Param("password") String password, @Param("password2")String password2);

    int findNewCont();

    List<User> findNewsPage(@Param("page") int startPos,@Param("pageSize") int pageSize);
}
